<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/{$page_theme | default: 'default'}/easyui.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="{$contextPath}/pas/style/my.css">
    
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{$contextPath}/pas/javascript/my.js"></script>
</head> 
<body onpageshow="resetPagination('dg')">
    {datagrid id="dg" datasource="/pas/UserService/findAll.do" view="t_user.view" }
    {form id="dlg" view="t_user.view" }
    {form id="dlg2" action="savePassword" view="t_user.changepassword" }
    <script>{literal}
    action_prehandlers.updateOne=function(){
    	var row = getDatagrid("dg").datagrid('getSelected');
    	var roleIds = new Array();
    	for(let key in row.roleIds){
    		roleIds.push(row.roleIds[key]+"");
    	}
    	return {"roleIds":roleIds};
    }
    {/literal}</script>
</body>
</html>